<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.xz.group12306.domain.User"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员首页</title>
<link rel="stylesheet" type="text/css"
	href="../js/util/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="../js/util/easyui/themes/icon.css">

<script type="text/javascript" src="../js/util/easyui/jquery.min.js"></script>
<script type="text/javascript"
	src="../js/util/easyui/jquery.easyui.min.js"></script>
	
</head>
<body id="cc" class="easyui-layout">
	<div data-options="region:'north'"
		style="height: 100px; background: url(../images/ny_top_img.gif)"></div>
	<div data-options="region:'west',title:'导航栏',split:true"
		style="width: 100px;">
		<a class="easyui-linkbutton" style="width: 80px" target="main">增加用户</a><br>
		<a class="easyui-linkbutton" style="width: 80px" target="main">管理用户</a><br>
		<a class="easyui-linkbutton" style="width: 80px" target="main">增加票务</a>
		<a class="easyui-linkbutton" style="width: 80px" target="main">管理票务</a>

         <a href="../LoginoutServlet" class="easyui-linkbutton" data-options="iconCls:'icon-remove'">退出系统</a></div>
	</div>
	<div
		data-options="region:'center',title:'主页   &nbsp;&nbsp;&nbsp; <c:if test="${not empty user }">当前管理员:${user.username} </c:if>'"
		style="padding: 5px;" name="main">
		<div id="tt" class="easyui-tabs" data-options="tools:'#tab-tools'"
			style="width: 100%; height: 100%">
			<div title="增加用户" href="../admin/ManageAdd.jsp" style="padding: 10px"></div>
			<div title="管理用户" href="../admin/ManageFirstQuery.jsp" style="padding: 10px"></div>
			<div title="增加票务" href="../admin/ManageAddTicket.jsp" style="padding: 10px"></div>
			<div title="管理票务" href="../admin/ManageQueryFirstTicket.jsp"></div>
		</div>
	</div>

	<script type="text/javascript">
		function addTab(url) {
			var content = '<iframe scrolling="auto" frameborder="0"  src="'
					+ url + '" style="width:100%;height:100%;"></iframe>';
			$('#tt').tabs('add', {
				title : '修改票务',
				content : content,
				closable : true
			});
		}
	
	</script>
</body>
</html>